﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ResponsibilityAreaStreetGrid.aspx.cs"
    Inherits="FantastPlatform.Community.UI.ResponsibilityAreaStreetGrid" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
   <script type="text/javascript">

            var rg = new FantastPlatform.UI.ResponsibilityAreaStreetGrid({
                renderTo: 'rg_div',
                url: '../Service/ResponsibilityAreaStreet.aspx?Action=Search',
                border: false,
                width: tabs.getInnerWidth() - 2,
                height: tabs.getInnerHeight() - 2,
                tbar: [
                {
                    text: '新增',
                    iconCls: 'add',
                    disabled: Disabled,
                    tooltip: {
                        text: '新增负责街道',
                        title: '新增负责街道',
                        autoHide: true
                    },
                    handler: function () { rg.onAddPoliceStreetClick(); }
                }, '-', {
                    text: '编辑',
                    iconCls: 'edit',
                    disabled: Disabled,
                    tooltip: {
                        text: '编辑负责街道',
                        title: '编辑负责街道',
                        autoHide: true
                    },
                    handler: function () { rg.onEditPoliceStreetClick(); }
                }, '-', {
                    text: '删除',
                    iconCls: 'delete',
                    disabled: Disabled,
                    tooltip: {
                        text: '删除负责街道',
                        title: '删除负责街道',
                        autoHide: true
                    },
                    handler: function () { rg.onDeletePoliceStreetClick(); }
                }, '-', {
                    text: '查询',
                    iconCls: 'search',
                    tooltip: {
                        text: '按照条件查询责任区街道',
                        title: '查询责任区街道',
                        autoHide: true
                    },
                    handler: function () { rg.onDeletePoliceStreetClick(); }
                }, '-',
                {
                    text: '刷新',
                    iconCls: 'updata',
                    tooltip: {
                        text: '重新更新列表内容',
                        title: '列表刷新',
                        autoHide: true
                    },
                    handler: function () { rg.onUpdataAreaStreetClick(); }
                }]
            });
            rg.addListener('rowdblclick', function () { rg.onEditPoliceStreetClick(); });
            rg.onUpdataAreaStreetClick();

    </script>
</head>
<body>   
    <div id="rg_div">
    </div>
  </body>
</html>
